/* Base Variables */
:root {
	--syd-pink: #E87D88;
	--syd-blue-primary: #0066FF;
	--syd-blue-secondary: #3B82F6;
	--syd-red: #DC2626;
	--syd-green: #22C55E;
	--syd-gray-100: #F3F4F6;
	--syd-gray-200: #E5E7EB;
	--syd-gray-300: #D1D5DB;
	--syd-gray-400: #9CA3AF;
	--syd-gray-500: #6B7280;
	--syd-gray-600: #4B5563;
	--syd-gray-700: #374151;
	--syd-gray-800: #1F2937;
	--syd-gray-900: #111827;
	--syd-warning: #F59E0B;
	--syd-info: #60A5FA;
	
	/* Gate Badge System - Core Variables */
	/* Colors */
	--gate-badge-bg: #0bcaf0;               /* Common background for all gate badges */
	--gate-badge-text: #FFFFFF;             /* Text color for gate badges */
	--gate-badge-combined-bg: #DBEAFE;      /* Special case for combined badges */
	--gate-badge-combined-text: #3B82F6;    /* Text color for combined badges */
	--gate-badge-combined-border: #60A5FA;  /* Border for combined badges */
	
	/* Sizes */
	/*--gate-badge-header-width: 9.375rem;    /* 150px in rem */
	/*--gate-badge-child-width: 4.6875rem;    /* 75px in rem */
	--gate-badge-child-height: 1.5rem;          /* Consistent height for all child badges */
	--gate-badge-child-text-size: 0.5rem;     /* For child gate badges */
	--gate-badge-header-text-size: 0.7rem;    /* For header gate badges */
}

/* Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Match the header height */
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--syd-gray-900);
    background-color: var(--syd-gray-100);
    line-height: 1.5;
}

.text-white {
    color: #FFFFFF;
}
.text-xs {
  font-size: 0.6rem; /* Or whatever size you prefer */
}
.badge-text-xs{
  font-family: Arial Narrow ;
  font-size: 0.7rem;
}
.card {
	min-height: 100px;
}

/* Navigation */
.navbar {
    height: 60px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.panel-container {
    scroll-margin-top: 60px; /* Match the header height */
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: visible; /* Ensure content isn't clipped */
}

/* Show state */
.panel-container[ng-show="true"] {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hide state */
.panel-container[ng-show="false"] {
    display: none;
}

/* Animation states */
.panel-container.ng-hide-remove {
    display: block !important;
    opacity: 0;
    transform: translateY(20px);
}

.panel-container.ng-hide-remove-active {
    opacity: 1;
    transform: translateY(0);
}

/* Panel z-index hierarchy */
#issueTypePanel {
    z-index: 3;
}

#locationPanel,
#assetPanel {
    z-index: 2;
}

#detailsPanel {
    z-index: 1;
}

/* Loading state */
.panel-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Panel content wrapper */
.panel-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Active panel styling */
.panel-container.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .panel-container {
        margin-bottom: 1rem;
    }
    
    .panel-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--syd-gray-700);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Location Cards */
.location-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--syd-gray-200);
    height: 100%;
    display: block !important;
    visibility: visible !important;
    background: white;
    border-radius: 0.375rem;
    overflow: hidden;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-card ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--syd-gray-600);
}

.location-card ul li a {
    display: flex;
    align-items: center;
    vertical-align: middle;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.location-card ul li a:hover {
    background-color: var(--syd-gray-100);
    transform: translateX(4px);
}

.location-card ul li a:active {
    background-color: var(--syd-gray-200);
    transform: translateX(2px);
}

/* Gate Indication Styles */
.location-card.has-gates {
    border-left: 4px solid var(--syd-warning);
}

.location-card.has-children.has-gates:not(.has-direct-gates) {
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--syd-blue-secondary) 50%, var(--syd-info) 50%) 1;
}

.location-card.has-children:not(.has-gates) {
    border-left: 4px solid var(--syd-blue-secondary);
}

/* Location Card Contents */
.location-card .card-body {
    padding: 1.25rem;
}

.location-icon {
    font-size: 1.5rem;
    color: var(--syd-gray-500);
    margin-bottom: 0.75rem;
}

/* Badge Styling */
.location-card .badge {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    letter-spacing: -0.01em;
    font-weight: 500;
    line-height: 1.2;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    visibility: visible !important;
}

.location-card .badge + .badge {
    margin-right: 0.5rem;
}

.location-card .badge i.fa-plane-departure {
    font-size: 0.9em;
    margin-right: 0.25rem;
    color: #FFFFFF;
}

.location-card .badge.bg-warning,
.location-card .badge.bg-info {
    opacity: 1 !important;
    visibility: visible !important;
}

.location-card [class*="badge"] {
    display: inline-flex !important;
}

/* Child Links */
.child-links-container {
  position: relative;
  z-index: 10;
}

.location-card a {
  position: relative;
  z-index: 2;
}


/* Sector Badge Colors */
.badge.bg-primary {
    background-color: var(--syd-blue-primary) !important;
}

.badge.bg-warning {
    background-color: var(--syd-warning) !important;
    color: var(--syd-gray-900);
}

.badge.bg-info {
    background-color: var(--syd-info) !important;
}

/* Child List Styles */
.location-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.location-card ul li:last-child {
    margin-bottom: 0;
}

.location-card ul li i {
    font-size: 0.75rem;
    color: var(--syd-gray-400);
}

.location-card .border-top {
    border-top-color: var(--syd-gray-200) !important;
}

/* Target terminal cards specifically */
[data-is-terminal="true"] .child-links-container {
  position: relative;
  z-index: 15 !important; 
}

[data-is-terminal="true"] .child-location-link {
  /* display: block !important; */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20 !important; /* Even higher z-index */
  padding: 0.5rem !important; /* Larger click target */
  margin: -0.5rem !important;
  background-color: rgba(255, 255, 255, 0.01); /* Barely visible background to ensure the element captures clicks */
}

/* Make sure clicks on terminal child links don't bubble 
[data-is-terminal="true"] .child-location-link:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; 
} */

/* Add visual indicator for terminal cards */
[data-is-terminal="true"] {
  border-left-color: var(--syd-blue-primary) !important;
  border-left-width: 3px !important;
}

/* General fixes for all child links */
.child-links-container {
  position: relative;
  z-index: 10;
}

.child-location-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
} 

.child-location-link > span,
.child-location-link > i,
.child-location-link > .badge {
  display: inline-flex;
  align-items: center;
}




/* Main Buildings */
.building-card {
    background: #fff;
    border: 1px solid var(--syd-gray-200);
    border-radius: 0.375rem;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.building-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: var(--syd-blue-secondary);
}

.building-title {
    font-size: 1rem;
    color: var(--syd-gray-900);
    font-weight: 500;
}

.building-card .border-start {
    border-color: var(--syd-gray-200) !important;
}

.building-card ul li {
    transition: transform 0.2s ease-in-out;
}

.building-card ul li a {
    transition: all 0.2s ease-in-out;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.building-card ul li a:hover {
    background-color: var(--syd-gray-100);
    transform: translateX(4px);
}

.building-card ul li a:active {
    background-color: var(--syd-gray-200);
    transform: translateX(2px);
}

/* location-asset Card Styles */
/* Enhanced styles for location-asset flow */

/* Location-Asset Panel Specific Styles */
.asset-in-location-card {
    border-left: 4px solid var(--syd-green);
    background-color: rgba(34, 197, 94, 0.05);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.asset-in-location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(34, 197, 94, 0.1);
}

/* Enhanced selection state */
.asset-in-location-card.selected {
    border-color: var(--syd-green);
    background-color: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 0 2px var(--syd-green);
}

.asset-in-location-card.selected::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--syd-green);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.asset-in-location-card.selected::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 3px;
    right: 6px;
    color: white;
    z-index: 1;
    font-size: 12px;
}

/* Improved header area */
.asset-in-location-header {
    background-color: rgba(34, 197, 94, 0.1);
    padding: 0.75rem 1rem;
    margin: 0; /* Changed from negative margins */
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}
/* Adjusted card body to work with the header */
.asset-in-location-card .card-body {
    padding: 1.25rem;
    border-top: none;
}

/* Asset icon styling */
.asset-icon {
    color: var(--syd-green);
    font-size: 1.2em;
}

/* Asset count badge styling */
.asset-count-badge {
    background-color: var(--syd-green);
    color: white;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.25em 0.75em;
}

/* Assets section styling */
.assets-section {
    border-top: 1px solid var(--syd-gray-200);
    padding-top: 1.5rem;
}

/* Continue button in "No Assets" alert */
.alert .btn-outline-primary {
    border-color: var(--syd-blue-primary);
    color: var(--syd-blue-primary);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
}

.alert .btn-outline-primary:hover {
    background-color: var(--syd-blue-primary);
    color: white;
}

/* Add these styles to styles.css to enhance the location-asset flow appearance */

/* Highlight locations with assets */
.location-card.has-assets {
    border-left: 4px solid var(--syd-green);
    background-color: rgba(34, 197, 94, 0.05);
}

/* Combined styles for locations with both gates and assets */
.location-card.has-gates.has-assets {
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--syd-warning) 50%, var(--syd-green) 50%) 1;
}

/* Combined styles for locations with children and assets */
.location-card.has-children.has-assets:not(.has-gates) {
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--syd-blue-secondary) 50%, var(--syd-green) 50%) 1;
}

/* Enhanced hover effect for locations with assets */
.location-card.has-assets:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(34, 197, 94, 0.1);
}

/* Asset icon styling */
.fas.fa-cube {
    color: var(--syd-green);
}

/* Badge styling for asset indicators */
.badge.bg-success {
    background-color: var(--syd-green) !important;
    color: white;
}

/* Building card with assets */
.building-card:has(.badge.bg-success) {
    background-color: rgba(34, 197, 94, 0.05);
    border-left: 3px solid var(--syd-green);
}

.building-card:has(.badge.bg-success):hover {
    background-color: rgba(34, 197, 94, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced styling for sublocations with assets */
.location-card .text-success,
.building-card .text-success {
    color: var(--syd-green) !important;
    font-weight: 500;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state .icon {
    font-size: 3rem;
    color: var(--syd-gray-400);
    margin-bottom: 1rem;
}

.empty-state .title {
    font-size: 1.25rem;
    color: var(--syd-gray-700);
    margin-bottom: 0.5rem;
}

.empty-state .description {
    color: var(--syd-gray-600);
    margin-bottom: 1.5rem;
}

/* Additional styles for better visibility of asset indicators */
.asset-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--syd-green);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.asset-indicator i {
    margin-right: 0.25rem;
}

/* Better visibility for 'no locations' state */
.no-locations-message {
    background-color: white;
    border-left: 4px solid var(--syd-info);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.no-locations-message .icon {
    font-size: 1.5rem;
    color: var(--syd-info);
    margin-bottom: 1rem;
}

.no-locations-message .title {
    font-size: 1.25rem;
    color: var(--syd-gray-700);
    margin-bottom: 0.5rem;
}

.no-locations-message .actions {
    margin-top: 1rem;
}

/* Loading overlay refinement for location-asset flow */
.loading-assets-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    border-radius: 0.5rem;
}

.loading-assets-overlay .spinner {
    color: var(--syd-green);
}

.loading-assets-overlay .message {
    margin-left: 0.75rem;
    color: var(--syd-gray-700);
    font-weight: 500;
}


.quick-nav-link {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.quick-nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.quick-nav-link:active {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateX(2px);
}

.quick-nav-link .text-success {
    color: var(--syd-green) !important;
}

.text-gray-400 {
    color: var(--syd-gray-400, #9CA3AF) !important;
}


/* Responsive tweaks for asset indicators */
@media (max-width: 768px) {
    .location-card.has-assets {
        border-left-width: 3px;
    }
    
    .asset-indicator {
        padding: 0.1rem 0.35rem;
        font-size: 0.7rem;
    }
    
    .badge.bg-success {
        padding: 0.25em 0.5em;
        font-size: 0.75rem;
    }
}



/* Animation for panel transitions */
#locationAssetPanel {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#locationAssetPanel.ng-enter {
    opacity: 0;
    transform: translateY(20px);
}

#locationAssetPanel.ng-enter-active {
    opacity: 1;
    transform: translateY(0);
}

#locationAssetPanel.ng-leave {
    opacity: 1;
    transform: translateY(0);
}

#locationAssetPanel.ng-leave-active {
    opacity: 0;
    transform: translateY(-20px);
}

/* Responsive styles for the location-asset panel */
@media (max-width: 768px) {
    .asset-in-location-header {
        padding: 0.5rem;
        margin: -1rem -1rem 0.75rem -1rem;
    }
    
    .assets-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .asset-in-location-card.selected::after {
        width: 25px;
        height: 25px;
    }
    
    .asset-in-location-card.selected::before {
        top: 2px;
        right: 5px;
        font-size: 10px;
    }
}

/* Ensure proper alert styling */
.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.alert-info .fas {
    color: #055160;
}

/* Make sure asset selection works properly on touch devices */
@media (hover: none) {
    .asset-in-location-card:hover {
        transform: none;
    }
    
    .asset-in-location-card:active {
        background-color: rgba(34, 197, 94, 0.15);
        transform: translateY(-2px);
    }
}


/* Issue Groups */
.issue-groups .group-header {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.issue-groups .group-header h3 {
    color: var(--syd-gray-700);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.8rem;
}

.issue-groups .group-header .group-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--syd-blue-primary), transparent);
    opacity: 0.3;
}

.issue-groups .issue-group {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.issue-groups .issue-group:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Issue Type Items */
.issue-type-item {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 0.75rem;
    border: 1px solid var(--syd-gray-200);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.issue-type-item i {
    width: 16px;
    text-align: center;
    color: var(--syd-gray-600);
    margin-right: 8px;
    font-size: 1rem;
}

.issue-type-item span {
    font-size: 0.8rem;
    color: var(--syd-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.issue-type-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: var(--syd-blue-secondary);
    z-index: 1;
}

.issue-type-item.selected {
    border-color: var(--syd-blue-primary);
    background-color: #EFF6FF;
    box-shadow: 0 0 0 1px var(--syd-blue-primary);
    z-index: 2;
}

/* Asset Cards */
.asset-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.asset-card.selected {
    border-color: var(--syd-blue-primary);
    background-color: #EFF6FF;
    box-shadow: 0 0 0 1px var(--syd-blue-primary);
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: var(--syd-gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 0.375rem;
    border: 1px solid var(--syd-gray-300);
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--syd-blue-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--syd-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc2626' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--syd-gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.file-upload-zone:hover {
    border-color: var(--syd-blue-primary);
    background-color: var(--syd-gray-100);
}

.dragover {
    border-color: var(--syd-blue-primary);
    background-color: #EFF6FF;
}

.file-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Debug Panel */
.location-debug {
    background: white;
    border: 1px solid var(--syd-gray-200);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
}


/* Loading States */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: -0.125em;
}

/* Validation Messages */
.validation-error {
    color: var(--syd-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: white;
    border: 1px solid var(--syd-gray-200);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--syd-blue-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--syd-blue-secondary);
    text-decoration: underline;
}

.breadcrumb-link {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: 0.25rem;
  color: var(--syd-blue-primary) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  z-index: 5;
}

.breadcrumb-link:hover {
  background-color: rgba(0, 102, 255, 0.1);
  color: var(--syd-blue-primary) !important;
  text-decoration: none !important;
}

.breadcrumb-link:active {
  background-color: rgba(0, 102, 255, 0.2);
  transform: translateY(1px);
}

/* Make sure the active breadcrumb item is distinct */
.breadcrumb-item.active {
  color: var(--syd-gray-600);
  font-weight: 500;
}

/* Enhance the breadcrumb navigation visibility */
.breadcrumb {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--syd-gray-200);
}


/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--syd-blue-primary);
    border-color: var(--syd-blue-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0052CC;
    border-color: #0052CC;
}

.btn-danger {
    background-color: var(--syd-red);
    border-color: var(--syd-red);
    color: white;
}

.btn-danger:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus States */
:focus {
    outline: 2px solid var(--syd-blue-primary);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}



/* Floating Back Button */
.floating-back {
  z-index: 9999 !important;
  position: fixed !important;
  bottom: 2rem !important;
  left: 2rem !important;
  opacity: 0;
  transform: translateY(1rem) !important;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
  contain: layout style;
  /* Add isolation property */
  isolation: isolate;
}

.floating-back-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-back .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.floating-back .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .floating-back {
        bottom: 1rem;
        left: 1rem;
    }
    
    .floating-back .btn {
        padding: 0.5rem 1rem;
    }
}



/* Bathroom Icon Styles */
.bathroom-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bathroom-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Custom pink color for feeding rooms */
.text-pink {
    color: #e83e8c !important;
}

/* Bathroom asset card styles */
.asset-card.bathroom-asset {
    border-left: 3px solid;
}

.asset-card.bathroom-asset[data-bathroom-type="Female"] {
    border-left-color: var(--syd-red);
}

.asset-card.bathroom-asset[data-bathroom-type="Male"] {
    border-left-color: var(--syd-blue-primary);
}

.asset-card.bathroom-asset[data-bathroom-type="Unisex"] {
    border-left-color: var(--syd-green);
}

.asset-card.bathroom-asset[data-bathroom-type="All Gender"] {
    border-left-color: var(--syd-info);
}

.asset-card.bathroom-asset[data-bathroom-type="Parents"],
.asset-card.bathroom-asset[data-bathroom-type="Family"] {
    border-left-color: var(--syd-warning);
}

.asset-card.bathroom-asset[data-bathroom-type="Feeding Room"] {
    border-left-color: #e83e8c;
}

.asset-card.bathroom-asset[data-bathroom-type="Shower"] {
    border-left-color: var(--syd-info);
}

.asset-card.bathroom-asset[data-bathroom-type="Pet"],
.asset-card.bathroom-asset[data-bathroom-type="Assistance Animal"] {
    border-left-color: var(--syd-gray-700);
}

/* Bathroom Icon Styles for Multiple Types */
.bathroom-icon-container {
    display: inline-flex;
    align-items: center;
}

.bathroom-icon-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bathroom-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bathroom-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Custom color for feeding rooms */
.text-pink {
    color: #e83e8c !important;
}
/* Bathroom summary badge for location cards */
.bathroom-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.bathroom-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.35rem;
    background-color: rgba(0, 0, 0, 0.05);
}


.crew {
	font-size: 0.65rem;
    font-weight: 100;
    color: var(--syd-gray-700);
}





/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .form-section {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    .location-card {
        margin-bottom: 1rem;
    }

    .badge {
        font-size: 0.75rem;
    }

    .building-card {
        margin-bottom: 0;
    }

    .issue-groups .group-header h3 {
        font-size: 1rem;
    }
    
    .issue-type-item {
        padding: 0 0.5rem;
    }

    .issue-groups .issue-group {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .form-section {
        break-inside: avoid;
        border: none;
        box-shadow: none;
    }
}


/* ******************** */
/* components.css */
/* Common card styles */
.location-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--syd-gray-200);
  height: 100%;
  background: white;
  border-radius: 0.375rem;
  overflow: hidden;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Asset card styles */
.asset-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.asset-card.selected {
  border-color: var(--syd-blue-primary);
  background-color: #EFF6FF;
  box-shadow: 0 0 0 1px var(--syd-blue-primary);
}

/* Enhanced styles for location-asset-selector navigation */

/* Ensure smooth transitions between navigation levels */
.location-asset-selector .nav-level {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Panel animations for level navigation */
.location-asset-selector .nav-level.ng-enter {
  opacity: 0;
  transform: translateY(20px);
}

.location-asset-selector .nav-level.ng-enter-active {
  opacity: 1;
  transform: translateY(0);
}

.location-asset-selector .nav-level.ng-leave {
  opacity: 1;
  transform: translateY(0);
}

.location-asset-selector .nav-level.ng-leave-active {
  opacity: 0;
  transform: translateY(-20px);
}

/* Ensure proper focus visualization */
.location-asset-selector a:focus {
  outline: 2px solid var(--syd-blue-primary);
  outline-offset: 2px;
}

/* Improve back button visibility */
.location-asset-selector .breadcrumb a {
  font-weight: 500;
  color: var(--syd-blue-primary);
}

.location-asset-selector .breadcrumb a:hover {
  text-decoration: underline;
}

/* Ensure selected navigation level is visible */
.location-asset-selector [ng-if="locAssetCtrl.selectedPath.length === 0"] {
  display: block !important;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.location-asset-selector [ng-if="locAssetCtrl.selectedPath.length > 0"] {
  display: block !important;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Fix for transition between navigation levels */
.card.location-card {
  border: 1px solid var(--syd-gray-200);
  transition: all 0.2s ease-in-out, border-color 0.3s ease;
}

.card.location-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--syd-blue-secondary);
}

/* Adding a "Back to root" button style */
.location-asset-selector .back-to-root-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: var(--syd-gray-100);
  border: 1px solid var(--syd-gray-300);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.location-asset-selector .back-to-root-btn:hover {
  background-color: var(--syd-gray-200);
  transform: translateY(-1px);
}

.location-asset-selector .back-to-root-btn i {
  margin-right: 0.5rem;
}

/* Fix for assets section */
.assets-section {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.assets-section.ng-enter {
  opacity: 0;
}

.assets-section.ng-enter-active {
  opacity: 1;
}




/* ********************* */
/* Asset Count Badge Styling */
.badge.bg-success {
  background-color: var(--syd-green) !important;
  color: white;
  font-weight: 500;
  padding: 0.4em 0.65em;
  font-size: 0.75rem;
  display: inline-flex !important;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Direct asset count display */
.direct-asset-count {
  font-weight: 600;
  margin-right: 0.15em;
}

/* Descendant asset count display (with plus sign) */
.descendant-asset-count {
  font-size: 0.85em;
  font-weight: normal;
  opacity: 0.9;
}

/* Smaller variants for the child lists */
.direct-asset-count-small {
  font-size: 0.7em;
  font-weight: 600;
  margin-right: 0.1em;
}

.descendant-asset-count-small {
  font-size: 0.65em;
  font-weight: normal;
  opacity: 0.9;
}

/* Styling for child location asset badges */
.list-unstyled .badge.bg-success {
  padding: 0.2em 0.45em;
  font-size: 0.7rem;
}

.list-unstyled .badge.bg-success .direct-asset-count,
.list-unstyled .badge.bg-success .descendant-asset-count {
  font-size: 0.7rem;
}

/* Enhanced border for locations with assets */
.location-card.has-assets {
  border-left: 3px solid var(--syd-green);
  background-color: rgba(34, 197, 94, 0.02);
}

/* Hover effect enhancement */
.location-card.has-assets:hover {
  border-left-width: 4px;
  background-color: rgba(34, 197, 94, 0.05);
}

/* Similar styling for main building cards with assets */
.building-card:has(.badge.bg-success) {
  border-left: 3px solid var(--syd-green);
  padding-left: 0.75rem;
  background-color: rgba(34, 197, 94, 0.02);
}

.building-card:has(.badge.bg-success):hover {
  border-left-width: 4px;
  background-color: rgba(34, 197, 94, 0.05);
}

/* Styling for other group locations with assets */
.list-group-item:has(.badge.bg-success) {
  border-left: 3px solid var(--syd-green);
  padding-left: 1rem;
}

.list-group-item:has(.badge.bg-success):hover {
  border-left-width: 4px;
  background-color: rgba(34, 197, 94, 0.05);
}

/* Ensure the badge is large enough to contain the numbers */
.badge.bg-success {
  min-width: 1.8rem;
  text-align: center;
  justify-content: center;
}

/* Make sure badges don't wrap or break their formatting */
.card-header-badges .badge {
  white-space: nowrap;
}

/* Special styling for parent locations with only descendant assets (no direct assets) */
.location-card.has-assets:not([data-direct-assets="true"]) {
  border-left-color: rgba(34, 197, 94, 0.7);
}

/* Badge containing only descendant count (no direct assets) */
.badge.bg-success:not(.has-direct-assets) {
  background-color: rgba(34, 197, 94, 0.8) !important;
}


/* Gate Badge Styles ############################  ############################  */

/* Gate Badge Base - Universal Properties */
.gate-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  background-color: var(--gate-badge-bg) !important;
  color: var(--gate-badge-text) !important;
  border-radius: 0.25rem;
}

/* HEADER BADGE STYLES - Card Header Only */
.card-header-badges .gate-badge {
  width: calc(max-content * 0.5 + 0.25rem);
  padding: 0.2rem 0.4rem;
  font-size: var(--gate-badge-header-text-size); /* Use the header-specific variable */
}

.card-header-badges .gate-badge i {
  font-size: calc(var(--gate-badge-header-text-size) * 0.93); /* Scale icon size relative to the text size */
  margin-right: 0.25rem !important;
  flex-shrink: 0;
}

.card-header-badges .gate-numbers-container {
  width: calc(max-content * 0.5 + 0.25rem);
  font-size: var(--gate-badge-header-text-size); /* Use the header-specific variable */
}

/* Allow vertical stacking in header badges */
.card-header-badges .gate-badge .gates-label,
.card-header-badges .gate-badge .direct-gates-label,
.card-header-badges .gate-badge .descendant-gates-label,
.card-header-badges .gate-badge .all-gates-label {
  display: block;
  overflow: hidden;
  width: 100%;
  font-size: var(--gate-badge-header-text-size); /* Use the header-specific variable */
}

.card-header-badges .static-gates-text {
  display: block;
  margin-bottom: 0.125rem;
  font-size: calc(var(--gate-badge-header-text-size) * 0.85); /* Scale relative to the header text size */
}

/* Card Border Styling for Gates (used on the CARD itself) */
.location-card.has-direct-gates.has-descendant-gates {
  border-left: 0.25rem solid transparent;
  border-image: linear-gradient(to bottom, 
    var(--gate-badge-bg) 50%, 
    var(--gate-badge-bg) 50%
  ) 1;
}


/* --- CHILD LOCATION LIST GATE BADGES --- */

/* Child badge sizing/layout */
.child-gate-badge {
  height: var(--gate-badge-child-height);
  min-height: var(--gate-badge-child-height);
  max-height: var(--gate-badge-child-height);
  padding: 0 0.25rem;
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
  line-height: 1;
  text-align: center !important;
  overflow: hidden;
  color: var(--gate-badge-text) !important;
}

/* Label layout in child badges (direct, descendant, all, or generic) */
.child-gate-badge .gates-label,
.child-gate-badge .direct-gates-label,
.child-gate-badge .descendant-gates-label,
.child-gate-badge .all-gates-label {
  display: flex;
  flex-direction: column; /* vertical stacking */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Badge icon size in child badge */
.child-gate-badge .static-gates-text i {
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
  margin-right: 0.15rem !important;
  flex-shrink: 0;
  color: white; 
}

/* Static text in child badge */
.child-gate-badge .static-gates-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-bottom: 0 !important; /* Changed from 1px */
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
}

/* Numeric container in child badge */
.child-gate-badge .gate-numbers-container {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
  line-height: 1;
}

/* Ticker in child badge */
.child-gate-badge .gate-numbers-ticker {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
  line-height: 1;
}

/* Ticker animation (used globally as it's not child-specific) */
.gate-numbers-ticker {
  display: flex;
  align-items: center;
  /* -webkit-animation: tickerScroll 20s linear infinite;
  animation: tickerScroll 20s linear infinite;
  will-change: transform; */
}

/*
@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-100% - 0.25rem), 0, 0); }
}

@-webkit-keyframes tickerScroll {
  0% { -webkit-transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(calc(-100% - 0.25rem), 0, 0); }
}
*/
@keyframes tickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@-webkit-keyframes tickerScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  margin-right: 0 !important;
  margin-left: 0 !important;
  justify-content: center !important;
  text-align: center !important;
  flex: 1 0 auto !important;
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
}

/* Ensure header ticker items use the header font size */
.card-header-badges .ticker-item {
  font-size: var(--gate-badge-header-text-size); /* Use the header-specific variable */
}

/* Pause ticker animation on hover */
.gate-badge:hover .gate-numbers-ticker {
  animation-play-state: paused;
}

/* Asset badge size match fix */
.child-gate-badge.badge.bg-success {
  height: var(--gate-badge-child-height) !important;
  min-height: var(--gate-badge-child-height) !important;
  max-height: var(--gate-badge-child-height) !important;
  padding-top: 0;
  padding-bottom: 0;
  font-size: var(--gate-badge-child-text-size); /* Use the child-specific variable */
  line-height: 1;
}

/* Type-specific styles for child gate badges */
.child-gate-badge.direct-gate-badge   { font-weight: 500; }
.child-gate-badge.descendant-gate-badge { font-weight: 400; }
.child-gate-badge.combined-gate-badge {
  background-color: var(--gate-badge-combined-bg) !important;
  color: var(--gate-badge-combined-text) !important;
  border: 1px solid var(--gate-badge-combined-border);
}

/* Add special styles for gate numbers in child context */
.child-gate-badge span {
  line-height: 1;
  vertical-align: middle;
}

/* Utility: Hide gate count by default, enable if needed via override later */
.gate-count { 
  display: none !important; 
}







/* ############################## */






/* Form group styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form controls */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Textarea specific */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Required field indicator */
.text-danger {
    color: #dc3545 !important;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    margin: 0.25rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Alert styling */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Form validation */
.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #issueDetailsTitle h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Custom checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    margin-left: -1.5em;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.25rem;
}

/* Horizontal rule styling */
hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Reference number styling */
#SR {
    color: #0d6efd;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* Debug button styling */
#submitButtonToolbar {
    flex-wrap: wrap;
    justify-content: center;
}

/* Loading spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}



/* ##################### */



/* Main Details Panel Styles */
#mainDetailsPanel {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
  }
  
  #mainDetailsPanel h1,
  #mainDetailsPanel h2,
  #mainDetailsPanel h3,
  #mainDetailsPanel h4,
  #mainDetailsPanel h5,
  #mainDetailsPanel h6 {
    color: a9a9a9;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  
 #mainDetailsPanel h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

#mainDetailsPanel h5 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}
  
  #mainDetailsPanel .form-control,
  #mainDetailsPanel .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  #mainDetailsPanel .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
  }
  
  #mainDetailsPanel .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
  }
  
  #mainDetailsPanel .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  #mainDetailsPanel .form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
  }
  
  #mainDetailsPanel .required:after {
    content: " *";
    color: #dc3545;
  }
  
  #mainDetailsPanel .invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
  }
  
  #mainDetailsPanel .card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
  }
  
  #mainDetailsPanel .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
  }
  
  #mainDetailsPanel .alert {
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Reset styles for the selection summary */
  #mainDetailsPanel #selectionSummary {
    all: revert;
    /* Add specific styles if needed */
    margin-top: 1.5rem;
    border: 1px solid #ffc107;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    #mainDetailsPanel {
      padding: 1rem;
    }
    
    #mainDetailsPanel .btn {
      width: 100%;
      margin-bottom: 0.5rem;
    }
  }
  